<?php

include 'init.php';

$admin = new Admin();
$admin->checkAdmin();

$entity = new EntityAdmin();
$data['entities'] = $entity->entitiesList();

$menu = new MenuAdmin();
$data['menu'] = $menu->showMenu();

$tpl = new TemplateAdmin('menu', $data);
$tpl->viewTemplate();

?>
